#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);cin.tie(nullptr);
    int N; cin >> N;
    vector<double> v;
    for (int i = 0; i < N; ++i) {
        int t; cin >> t;
        v.emplace_back(t);
    }
    for (int i = 0; i < N-1; ++i) {
        if(v[i] >= v[i+1]){
            double sum = v[i];
            int j = i;
            while(j+1 < N && v[j] >= v[j+1]){
                sum += v[j+1];
                ++j;
            }
            sum /= (j-i+1);
            for (int k = i; k <=j ; ++k) {
                v[k] = sum;
            }
            i = j;
        }
    }
    for (int i = 0; i < N; ++i) {
        cout << fixed << setprecision(9) << v[i] << "\n";
    }
    return 0;
}